package com.seckill.entity;

/**
 * @author wangzhilong
 * @date 2019-06-18
 */
public class Result {

    private int code ;
    private String msg ;

    public static Result ERROR(String msg){
        return new Result(-1, msg);
    }
    public static Result OK(){
        return new Result(0,"ok");
    }

    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
